package com.example.printer2.po;

import java.io.File;

public class MyFile {
    String fileName;
    File file;
    Integer num;
    Integer pageNum;

    /* 0 word 1 pdf*/
    Integer type;

    public MyFile() {
    }

    public MyFile(String fileName, File file,Integer pageNum, Integer num,String type) {
        this.fileName = fileName;
        this.pageNum=pageNum;
        this.file = file;
        this.num = num;
        if(type.equals(".pdf"))this.type=1;
        else this.type=0;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public File getFile() {
        return file;
    }

    public void setFile(File file) {
        this.file = file;
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    public Integer getPageNum() {
        return pageNum;
    }

    public void setPageNum(Integer pageNum) {
        this.pageNum = pageNum;
    }
}
